/**
 *Copyright (c) 2017- https://gitee.com/allmx/master.git
 * hhqk-lmx:下午2:16:41
 */
package org.hhqk.admin.mybatis.serviceImpl;

import java.util.List;

import org.hhqk.admin.mybatis.service.IUserService;
import org.hhqk.mybatis.dao.UserMapper;
import org.hhqk.mybatis.entity.User;
import org.hhqk.mybatis.entity.UserCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 * UserServiceImpl.java
 * 2017年12月11日
 * <p>description:</p>
 */
@Service("userServiceImpl")
public class UserServiceImpl implements IUserService{
	
	@Autowired
	private UserMapper userDao;
	
	@Override
	public User getUserById(int userId) {
		return userDao.selectByPrimaryKey(userId);
	}

	@Override
	public List<User> selectByExample(UserCriteria example) {
		return userDao.selectByExample(example);
	}

}
